package com.sunwayworld.basemodule.common.eptstorage.file.excelread.resource.impl;

import com.sunwayworld.basemodule.common.eptstorage.file.excelread.resource.LimsSheetReadconfigResource;
import com.sunwayworld.basemodule.common.eptstorage.file.excelread.service.LimsSheetReadconfigService;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogModule;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@LogModule("Sheet读取配置")
@RestController
@GikamBean
public class LimsSheetReadconfigResourceImpl implements LimsSheetReadconfigResource {

    @Autowired
    private LimsSheetReadconfigService limsSheetReadconfigService;

    @Override
    public LimsSheetReadconfigService getService() {
        return limsSheetReadconfigService;
    }

    @Log(value = "新增Sheet读取配置", type = LogType.INSERT)
    @Override
    @RequestMapping(method = RequestMethod.POST)
    public Long insert(RestJsonWrapperBean wrapper) {
        return getService().insert(wrapper);
    }

}
